package com.mypg;

import java.sql.Timestamp;

public class Info {
    private int info_id;
    private String info_title;
    private String info_content;
    private Timestamp info_time;
    private String info_class;
    private int info_read;

    public Info(){}
    public Info(int info_id, String info_title, String info_content, Timestamp info_time, String info_class,int info_read) {
        this.info_id = info_id;
        this.info_title = info_title;
        this.info_content = info_content;
        this.info_time = info_time;
        this.info_class = info_class;
        this.info_read=info_read;
    }

    public int getInfo_id() {
        return info_id;
    }

    public void setInfo_id(int info_id) {
        this.info_id = info_id;
    }

    public String getInfo_title() {
        return info_title;
    }

    public void setInfo_title(String info_title) {
        this.info_title = info_title;
    }

    public String getInfo_content() {
        return info_content;
    }

    public void setInfo_content(String info_content) {
        this.info_content = info_content;
    }

    public Timestamp getInfo_time() {
        return info_time;
    }

    public void setInfo_time(Timestamp info_time) {
        this.info_time = info_time;
    }

    public String getInfo_class() {
        return info_class;
    }

    public void setInfo_class(String info_class) {
        this.info_class = info_class;
    }

    public int getInfo_read() {
        return info_read;
    }

    public void setInfo_read(int info_read) {
        this.info_read = info_read;
    }

    @Override
    public String toString() {
        return "Info{" +
                "info_id=" + info_id +
                ", info_title='" + info_title + '\'' +
                ", info_content='" + info_content + '\'' +
                ", info_time=" + info_time +
                ", info_class='" + info_class + '\'' +
                ", info_read=" + info_read +
                '}';
    }
}
